import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listDisease(query) {
  return request({
    url: '/system/disease/list',
    method: 'get',
    params: query
  })
}

export function getListDisease() {
  return request({
    url: '/system/disease/getList',
    method: 'get'
  })
}

// 查询【请填写功能名称】详细
export function getDisease(diseaseId) {
  return request({
    url: '/system/disease/' + diseaseId,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addDisease(data) {
  return request({
    url: '/system/disease',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateDisease(data) {
  return request({
    url: '/system/disease',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delDisease(diseaseId) {
  return request({
    url: '/system/disease/' + diseaseId,
    method: 'delete'
  })
}

export function deleteDiseaseAll() {
  return request({
    url: '/system/disease/deleteDiseaseAll',
    method: 'post'
  })
}
